home *** CD-ROM | disk | FTP | other *** search
- OPTIONS=-I ../headers -O3 -Wall
- BOPTIONS=$(OPTIONS) -fbaserel -msmall-code
- PATTERN="libbases/*" "misc/*" "*"
-
- %.o: %.c
- gcc $(OPTIONS) $*.c -c -o $*.o 2>&1|tee $*.err
- -if test ! -s $*.err; then rm $*.err; fi
-
- %.bo: %.c
- gcc $(BOPTIONS) $*.c -c -o $*.bo 2>&1|tee $*.err
- -if test ! -s $*.err; then rm $*.err; fi
-
- all: libstubs.a blibstubs.a
-
- makefile: libbases/dos.c submake ../headers/makemake
- rx /headers/makemake $(PATTERN) >makefile
-
- clean:
- -rm libbases/* libnames/* */*.o */*.bo */*.err
-
- veryclean: clean
- -rm libstubs.a blibstubs.a makefile
-
- libstubs.a: $(OBJECTS) makefile
- -rm libstubs.a
- ar -q libstubs.a $(OBJECTS)
- ranlib libstubs.a
-
- blibstubs.a: $(BOBJECTS) makefile
- -rm blibstubs.a
- ar -q blibstubs.a $(BOBJECTS)
- ranlib blibstubs.a
-
- libbases/dos.c: makebase library.list
- -rm libbases/* libnames/*
- rx makebase
-
- .SUFFIXES:
- .SUFFIXES: .o .bo
-